import Vue from 'vue'
import {
  Button,
  /* notice related */
  Message,
  MessageBox,
  /* form related */
  Form,
  FormItem,
  Input,
  /* base layout related */
  Header,
  Container,
  Aside,
  Main,
  /* menu related */
  Menu,
  Submenu,
  MenuItem,
  /* breadcrumb navigation area */
  Breadcrumb,
  BreadcrumbItem,
  /* Card */
  Card,
  /* other layout */
  Row,
  Col,
  /* table */
  Table,
  TableColumn,
  /* Switch */
  Switch,
  /* Tooltip: Pop-up text prompt */
  Tooltip,
  /* for paging */
  Pagination,
  /* dialog */
  Dialog,
  /* Tag */
  Tag,
  /* tree view */
  Tree,
  /* Select */
  Select,
  Option,
  /* Cascader */
  Cascader,
  /* Alert */
  Alert,
  /* Tabs */
  Tabs,
  TabPane,
  /* Steps */
  Steps,
  Step,
  /* Checkbox */
  Checkbox,
  CheckboxGroup,
  /* Upload */
  Upload,
  /* Timeline */
  Timeline,
  TimelineItem
} from 'element-ui'

/* 按需导入我们需要的组件 */
Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Header)
Vue.use(Container)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Card)
Vue.use(Row)
Vue.use(Col)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Switch)
Vue.use(Tooltip)
Vue.use(Pagination)
Vue.use(Dialog)
Vue.use(Tag)
Vue.use(Tree)
Vue.use(Select)
Vue.use(Option)
Vue.use(Cascader)
Vue.use(Alert)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Upload)
Vue.use(Timeline)
Vue.use(TimelineItem)

Vue.prototype.$msg = Message
Vue.prototype.$confirm = MessageBox.confirm
